<VirtualHost *:80>
    WSGIScriptAlias /  /usr/local/share/horizon/openstack_dashboard/wsgi/horizon.wsgi
    WSGIDaemonProcess horizon user=apache group=apache processes=3 threads=10 home=/usr/local/share/horizon/
    WSGIApplicationGroup %{GLOBAL}

    SetEnv APACHE_RUN_USER apache
    SetEnv APACHE_RUN_GROUP apache
    WSGIProcessGroup horizon

    DocumentRoot /usr/local/share/horizon/.blackhole
    Alias /media /usr/local/share/horizon/openstack_dashboard/static
    Alias /static /usr/local/share/horizon/static

    #RedirectMatch "^/$" "/"

    <Directory />
        Options FollowSymLinks
        AllowOverride None
    </Directory>

    <Directory /usr/local/share/horizon/>
        Options Indexes FollowSymLinks MultiViews
        AllowOverride None
        # Apache 2.4 uses mod_authz_host for access control now (instead of
        #  "Allow")
        <IfVersion < 2.4>
            Order allow,deny
            Allow from all
        </IfVersion>
        <IfVersion >= 2.4>
            Require all granted
        </IfVersion>
    </Directory>
    <IfVersion >= 2.4>
      ErrorLogFormat "%{cu}t %M"
    </IfVersion>
    ErrorLog /var/log/httpd/horizon_error.log
    LogLevel warn
    CustomLog /var/log/httpd/horizon_access.log combined
</VirtualHost>
WSGISocketPrefix /var/run/httpd
